<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    <script>
        var list = [
            {name:"html",id:1001},
            {name:"css",id:1002}
        ]
        var res = JSON.stringify(list)
        localStorage.setItem("todo",res);
        var result = localStorage.getItem("todo");
        console.log(result);
    </script>
</body>
</html>